From: Cosimo Cecchi Date: Thu, 20 Jun 2013 21:51:33 +0000 (-0700) Subject: theme-node: fix support for box-shadow: none X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4013 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0b219bf8cba354ced8f97a12b5f78e6a720f005f;p=gnome-shell.git theme-node: fix support for box-shadow: none We currently don't parse "box-shadow: none", despite being valid CSS. Fix it so that it uses the default shadow values. https://bugzilla.gnome.org/show_bug.cgi?id=702782 --- diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c index e4eddcfb8..5250e8ac7 100644 --- a/src/st/st-theme-node.c +++ b/src/st/st-theme-node.c @@ -3056,6 +3056,10 @@ parse_shadow_property (StThemeNode *node, */ for (term = decl->value; term; term = term->next) { + /* if we found "none", we're all set with the default values */ + if (term_is_none (term)) + return VALUE_FOUND; + if (term->type == TERM_NUMBER) { gdouble value;